<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>订单明细管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/jiujiudevice/jiuOrderLog/">订单明细列表</a></li>
<%-- 		<shiro:hasPermission name="jiujiudevice:jiuOrderLog:edit"><li><a href="${ctx}/jiujiudevice/jiuOrderLog/form">订单明细添加</a></li></shiro:hasPermission>
 --%>	</ul>
	<form:form id="searchForm" modelAttribute="jiuOrderLog" action="${ctx}/jiujiudevice/jiuOrderLog/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>订单号：</label><form:input path="orderNo" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;
	   <label>设备SN：</label><form:input path="deviceSn" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr>
		<th>ID</th>
		<th>订单号</th>
		<th>设备SN</th>
		<th>设备使用单价</th>
		<th>使用开始时间</th>
		<th>使用结束时间</th>
		<th>设备使用时间</th>
		<th>设备消费金额</th>
		<th>创建时间</th>
		<tbody>
		<c:forEach items="${page.list}" var="jiuOrderLog">
			<tr>
			    <td>${jiuOrderLog.id }</td>
			    <td>${jiuOrderLog.orderNo}</td>
			    <td>${jiuOrderLog.deviceSn}</td>			    
			    <td>${jiuOrderLog.devicePrice}<span style="color:grey;">&nbsp;元</span></td>
			   
			    <td> <fmt:formatDate value="${jiuOrderLog.deviceBeginTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			    <td><fmt:formatDate value="${jiuOrderLog.deviceEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			    <td>${jiuOrderLog.deviceUseTimeStr }</td>
			    <td>${jiuOrderLog.deviceAmount}<span style="color:grey;">&nbsp;元</span></td>
			    <td><fmt:formatDate value="${jiuOrderLog.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
